﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;

namespace Cms.Web.Framework.Infrastructure.Wrappers
{
    public class CmsHttpRequest : ICmsHttpRequest
    {
        public CmsHttpRequest(System.Web.HttpRequest originalRequest)
        {
            Url = originalRequest.Url;
            ApplicationPath = originalRequest.ApplicationPath;
            QueryString = originalRequest.QueryString;
            AllowContentEditing = originalRequest["AllowContentEditing"] == "true";
        }

        public Uri Url { get; private set; }

        public string ApplicationPath { get; private set; }

        public NameValueCollection QueryString { get; private set; }

        public bool AllowContentEditing { get; private set; }
    }
}
